﻿using umbraco.cms.businesslogic.member;
using uREST.Core.Resources;

namespace uREST.Core.Extensions
{
    public static class MemberExtensions
    {
        public static string Tokenize(this Member member)
        {
            var token = new Token
            {
                Username = member.LoginName,
                Password = member.Password,
                Type = TokenType.Member
            };

            return token.Tokenize(false);
        }
    }
}
